﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% var brand = ViewData["Brand"] as IBrand; %>
    <%: Html.Partial("Sidebar") %>
    <div id="main">
        <div class="main-block">
            <h2 class="title">
                <%: brand == null ? "": brand.Name%>
            </h2>
            <div class="main-block-content clearfix">
                <%: Html.Partial("SortBy") %>
            <% foreach (object item in this.Model)
                   {
                       var model = item.Members().Properties;
                %>
                <div class="product-item">
                    <a href="<%: model["Url"]%>">
                        <img src="<%: model["Image"]%>" alt="" /></a> <a href="<%: model["Url"]%>">
                            <%: model["Name"]%></a> <span>
                                <%: model["Price"]%></span>
                </div>
                <%}%>
                <div class="pagination">
                <%--    <%: Html.FrontPager(Model) %>--%>
                </div>
            </div>
        </div>
    </div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Breadcrumb" runat="server">
    <%: Html.Partial("Breadcrumb") %>
</asp:Content>
